package com.atguigu.guli.service.oss.util;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component //组件注解,项目启动是会自动创建对象
@ConfigurationProperties(prefix = "aliyun.oss")//自动根据前缀加载配置文件中的属性设置给当前组件对象
@Data
public class OssProperties {

    private String sheme;//: http://
    private String endpoint;//: oss-cn-shanghai.aliyuncs.com
    private String accessKeyId;//: LTAI4FyqH1pSr2W14DnsBi1h
    private String accessKeySecret;//: w7LVbOJkf29SbdlxrcKyYiWTB5mhNg
    private String bucketName;//: sun-guli-file
}
